package com.ken.student.mapper;

import com.ken.common.pojo.*;
import com.ken.common.pojo.Class;
import com.ken.student.dto.answerDto;
import com.ken.student.vo.examVo;
import com.ken.student.vo.homeworkVo;
import com.ken.student.vo.messageVo;
import com.ken.student.vo.question_answerVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface studentMapper {
    List<homeworkVo> getHomeworkById(String student_id);
    List<examVo> getExamById(String student_id);
    void post_answer(answer answer);
    List<messageVo> getStudentMessage(String student_id);
    void update_attendanceType(@Param("student_id") String student_id,@Param("code") String code);
    List<Class> get_class(@Param("student_id") String student_id);
    course get_course(@Param("course_id") String course_id);
    void answer_question(answer answer);
    Question getQuestionById(@Param("id") String id);
    answer getAnswerById(@Param("student_id") String student_id,@Param("question_id") String question_id);
    answer getAnswerByQuestion(@Param("question_id") String question_id);
    List<studyRecord> getLessonRecord(@Param("lesson_id") String lesson_id,@Param("student_id") String student_id);
//    List<studyRecord> getAnswerByLesson(@Param("student_id") String student_id,@Param("lesson_id") String lesson_id);
    List<knowledgePoint> select_knowledgePoints(@Param("root") String root);
    knowledgePoint select_knowledgePoint(@Param("id") String id);
    List<Question> select_questionByKnowledge(@Param("knowledgePointId") String knowledgePointId);
    String homework_isPost(@Param("student_id") String student_id,@Param("homework_id") String homework_id);
    void  changeStudentHomework(@Param("student_id") String student_id,@Param("homework_id") String homework_id);
    List<unit> getUnitByCourse(@Param("course_id") String course_id);
    List<lessons> getLessonByUnit(@Param("unit_id") String unit_id);
    Integer getSumTime(@Param("lesson_id") String lesson_id,@Param("student_id") String student_id);
    void save_wrongQuestion(wrong_question wrongQuestion);
    List<wrong_question> get_wrongQuestion(@Param("student_id") String student_id);
    void change_wrongQuestion(@Param("wrong_questionId") String wrong_questionId);
    void delete_wrongQuestion(@Param("wrongQuestionId") String wrongQuestionId);
    void change_attendance(@Param("code") String code,@Param("student_id") String student_id);
}
